import { create } from 'zustand'

// 创建一个数据仓库
let useTestStore = create((set,) => ({
  num: 0,
  name: 'mal',
  setNum: () => set((state) => ({ num: state.num + 1 })),
  updateName: () => set({ name: 'malin' }),
}))

export { useTestStore }